FROM ubuntu
COPY . /redcross
RUN apt-get install git cmake curl libleveldb-dev libsqlite3-dev libsnappy-dev && \
rm /usr/lib/libsqlite.so && \
ln -s /usr/lib/libsqlite.so.0 /usr/lib/libsqlite.so && \
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash && \
cd /redcross-vue && \ 
cd backend && \
mkdir -p build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} .. && \
make -j8 && \
make install && \
app_server& && \
cd ../.. && \
cd frontend && \
npm install && \
npm run serve&